package com.doubi.mapper;

import com.doubi.model.sys.TSysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.doubi.model.sys.TSysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 后台部门表 Mapper 接口
 * </p>
 *
 * @author MrDoubi
 * @since 2019-11-06
 */
@Repository
@Mapper
public interface SysDeptMapper extends BaseMapper<TSysDept> {


    /**
     * 功能描述：修改下级部门状态
     * @author   MrDoubi 2019-06-28 11:03
     * @param oid           部门oid
     * @param status        修改状态
     * @param userOid       用户Oid
     * @return              返回修改数量
     */
    Integer updateXiaJiStatus(@Param("oid") String oid, @Param("status")Integer status, @Param("userOid")String userOid);
}
